# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Tom Gundersen <teg@jklm.no>
# Contributor: Thomas Baechler <thomas@archlinux.org>
# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>

pkgname=a52dec
pkgver=0.8.0
pkgrel=2
pkgdesc='Library for decoding ATSC A/52 (AC-3) audio streams'
arch=('loong64' 'x86_64')
url='https://git.adelielinux.org/community/a52dec/'
license=('GPL')
depends=('glibc')
source=("https://distfiles.adelielinux.org/source/$pkgname/$pkgname-$pkgver.tar.gz")
sha256sums=('03c181ce9c3fe0d2f5130de18dab9bd8bc63c354071515aa56983c74a9cffcc9')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --enable-shared
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
  install -m644 liba52/a52_internal.h "$pkgdir"/usr/include/a52dec/
}
